package entity;

import java.util.ArrayList;

public class Student extends ArrayList<Student> {
    private String id;
    private String name;
    private String sex;
    private String age;

    private double javascore;
    private double gaoshuscore;
    private double englishscore;
    private double total;

    public Student() {
    }





    public Student(String id, String name, String sex, String age, double javascore, double gaoshuscore, double englishscore) {
        this.id = id;
       setName(name);
        this.sex = sex;
        setAge(age);
        this.javascore = javascore;
        this.gaoshuscore = gaoshuscore;
        this.englishscore = englishscore;

    }

    public double getTotal() {
        return javascore+gaoshuscore+englishscore;
    }



    public String getId() {
        return id;
    }

    public void setId(String id) { this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {

        this.name = name;

    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {

        this.age = age;
    }

    public double getJavascore() {
        return javascore;
    }

    public void setJavascore(double javascore) {
        this.javascore = javascore;
    }

    public double getGaoshuscore() {
        return gaoshuscore;
    }

    public void setGaoshuscore(double gaoshuscore) {
        this.gaoshuscore = gaoshuscore;
    }

    public double getEnglishscore() {
        return englishscore;
    }

    public void setEnglishscore(double englishscore) {
        this.englishscore = englishscore;
    }


}
